<?php

CCore::Using('mime.header');

interface ICoreMimeCallbacks
{
	/**
	 * @param CCoreMimePart $oMimePart
	 * @return void
	 */
	public function StartParse(CCoreMimePart &$oMimePart);

	/**
	 * @param CCoreMimePart $oMimePart
	 * @return void
	 */
	public function EndParse(CCoreMimePart &$oMimePart);

	/**
	 * @param CCoreMimePart $oMimePart
	 * @return void
	 */
	public function StartParseMimePart(CCoreMimePart &$oMimePart);

	/**
	 * @param CCoreMimePart $oMimePart
	 * @return void
	 */
	public function EndParseMimePart(CCoreMimePart &$oMimePart);

	/**
	 * @return void
	 */
	public function InitMimePartHeader();

	/**
	 * @param string $sBuffer
	 * @return void
	 */
	public function ReadBuffer($sBuffer);

	/**
	 * @param string $sBuffer
	 * @return void
	 */
	public function WriteBody($sBuffer);
}
